#include "msgList.h"
#include <string.h>

using namespace lst;

int main(int argc, char *argv[])
{
    MsgList * ml = new MsgList(1);
    //ml->push("hellowwwww");
    ml->print_list();
    char inp[1024] = {0};
    char quit[] = "quit";
    while (1)
    {
        cin.getline(inp,1024);
        ml->push(inp);
        ml->print_list();
        if(strncmp(quit,inp,4)==0){
            cout<<endl;
            system("pause");
            break;
        }
    }

    return 0;
}